package com.qf.service;

import com.qf.mapper.UserMapper;
import com.qf.pojo.SysUsers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
   @Autowired
    private  UserMapper userMapper;

    @Override
    public SysUsers findUserByName(String userName) {
        SysUsers user = userMapper.findUserByName(userName);
        return user;
    }

    @Override
    public List<String> findRolesByUid(int uid) {
        List<String> list = userMapper.findRolesByUid(uid);
        return list;
    }

    @Override
    public List<String> findPermByUid(int uid) {
        List<String> list = userMapper.findPermByUid(uid);
        return list;
    }
}
